<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
	<head>
		<title>Hiring-企业注册</title>
		 <%@ include file="/WEB-INF/views/common/import.jsp"%>
	</head>
	<body>
		<div class="container">
		<h1><strong>企业注册</strong></h1>
		<hr>
		<c:if test="${!empty msg}">
			<div class="alert alert-danger alert-dismissible fade in" role="alert">
		      <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="  ">×</span></button>
		      <strong>${msg }</strong>
		    </div>
	    </c:if>
			<form role="form" method="post" action="CompanyServlet?command=register">
			  <div class="form-group">
			    <label for="code">用户名</label>
			    <input type="text" class="form-control" id="code"  name="code" 
			data-rule="required;username;"
            data-rule-username="[/[\w\d]{4,30}/, '请输入3-12数字，字母，下划线']"
            data-tip="你可以使用字母，数字"
				>
			  </div>
			  <div class="form-group">
			    <label for="password">密码</label>
			    <input type="password" class="form-control" id="password"  name="password"
			    data-rule="Password: required; length(4~12)"
            	data-tip="请填写至少四个字符"
			    >
			  </div>
			  <div class="form-group">
			    <label for="name">企业名称</label>
			    <input type="text" id="name" name="name" class="form-control"
			    data-rule="required"
			    >
			  </div>
			    <div class="form-group">
			    <label for="email">企业邮箱</label>
			    <input type="text" id="email" name="email" class="form-control"
			     data-rule="required;email"
			    >
			  </div>
			    <div class="form-group">
			    <label for="phone">联系电话</label>
			    <input type="text" id="phone" name="phone" class="form-control"
			    data-rule="required; mobile"
			    >
			  </div>
			    <div class="form-group">
			    <label for="linkman">联系人</label>
			    <input type="text" id="linkman" name="linkman" class="form-control"
			    data-rule="required"
			    >
			  </div>
			    <div class="form-group">
			    <label for="address">联系地址</label>
			    <input type="text" id="address" name="address" class="form-control"
			    data-rule="required"
			    >
			  </div>
			    <div class="form-group">
			    <label for="numbers">人数</label>
			    <input type="text" id="numbers" name="numbers" class="form-control"
			    
			    >
			  </div>
			   <div class="form-group">
			    <label for="slogan">服务宗旨</label>
			    <textarea rows="10" cols="30" name="slogan" id="slogan" class="form-control" data-rule="required"></textarea>
			  </div>
			  <button type="submit" class="btn btn-default">注册</button>
			   <a href="<%=request.getContextPath()%>/CompanyServlet?command=toLoginUI">
		        <button class="btn btn-primary " type="button">已有用户！返回登陆</button>
		        </a>
			</form>
		</div>
</html>